/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cbaServer;

import commonSources.Cliente;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Vector;
import operacoes2.Operacao;

/**
 *
 * @author Filipe
 */
public interface BankServerCBAInterface extends Remote {

    public Cliente getClienteByNumCard(String numCard)throws RemoteException;

    public boolean deposito(String numeroConta, double quantia) throws RemoteException;

    public int levantamento(String idConta, double quantia) throws RemoteException;

    public int pagamentoServico(String idConta, String referencia, double quantia) throws RemoteException;

    public int transferencia(String numContaPagador, String numContaDestino, double quantia) throws RemoteException;

    public double consultaSaldo(String numConta) throws RemoteException;

    public String autentica(String numCartao, String pinInserido) throws RemoteException;

    public boolean mudaPIN(String idConta, String numCartao, String pinNovo) throws RemoteException;

    public void guardaOperacoes(Vector<Operacao> operacoes) throws RemoteException;
}
